package com.lagou.service.impl;

import com.lagou.service.HelloService;
import com.lagou.service.HelloService1;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloServiceImpl   implements HelloService1 {
    @Override
    public String sayHello1(String name) {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("helloService1 : "+ RpcContext.getContext().getAttachment("ip"));
        return "hello1:"+name;
    }
}
